@echo off

REM Routines only backup
mysqldump --routines --no-data --no-create-info -hHOSTNAME -uUSERNAME -pPASSWORD DATABASE > routines.dmp

echo Remote definers from the DUMPed file
echo DEFINER=`USERNAME`@`HOSTNAME` to be removed

pause